//
// Created by 123 on 2025/1/2.
//
#include "iostream"
using namespace std;

class BasePage{
public:
    void header(){
        cout << "head..." << endl;
    }
    void footer(){
        cout << "foot..." << endl;
    }
    void lefter(){
        cout << "left..." << endl;
    }
};

class Java:public BasePage{
public:
    void content(){
        cout << "java" << endl;
    }
};

class Python : public BasePage{
public:
    void content(){
        cout << "python" << endl;
    }
};

void test(){
    Java ja;
    ja.header();
    ja.lefter();
    ja.footer();
    ja.content();
}

int main078(){
    test();

    return 0;
}